import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)
export default new Vuex.Store({
  state:{
    //锁定状态
    lock:false,
    //锁屏密码
    lockPasswd :'',
    //登录密码
    loginPsw:''
  },
  mutations:{
    //数据处理方法
    SET_LOCK(state){
      state.lock=!state.lock
    },
    SET_LOCK_PASSWD(state,lockPasswd){
      state.lockPasswd = lockPasswd
    },
    CLEAR_LOCK(state){
      state.lock = false
      state.lockPasswd = ''
    },
    SET_LOGIN_PASSWD(state,Passwd){
      state.loginPsw = Passwd
    },
  },
  getters:{
    //数据封装
  }
})